#   encoding:utf-8
"""
@ time:2025/6/26 21:24
@ Author: Lvbingqing
@ File: ceshi.py
"""


import mysql.connector
import pymysql

config = {
    'host': 'localhost',
    'port': 3306,
    'user': 'root',
    'password': '123456',
    'database': 'airline_data'
}

try:
    conn = pymysql.connect(**config)
    print("连接成功")
    conn.close()
except mysql.connector.Error as err:
    print(f"连接失败: {err}")